<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>用户注册成功</title>
<link type="text/css" rel="stylesheet"
	href="/products/passport/v2/css/base.css" />
<link type="text/css" rel="stylesheet"
	href="/products/passport/v2/css/my_acc.css" />
<link type="text/css" rel="stylesheet"
	href="/products/passport/v2/css/register.css" />
<link type="text/css" rel="stylesheet"
	href="/products/passport/v2/css/newcss.css" />
<script type="text/javascript"
	src="/products/js/jquery142.js"></script>
<script type="text/javascript"
	src="/products/passport/v2/js/kzpassport.js"></script>
<script type="text/javascript"
	src="/products/passport/v2/js/formValidator413.js"></script>
</head>

<body class="regbg">
	<div id="page_cotent">
		<div class="fpass_main">
			<!--头部-->
			<div class="reg_main_header">
				<div class="reg_logo reg_success_logo"></div>
				<div class="info">
					<a class="fh_jt" target="_blank" href="/index">返回首页</a>
				</div>
			</div>
			<!--内容-->
			<div class="reg_main_content reg_suc_maincnt">
				<p class="success">
					<span>恭喜您，乐控科技账号<b>${accountName}</b>已注册成功！
					</span>
				</p>
				<div id="shiming" class="new_ok">
					您目前的账号安全等级为

					<c:if test="${securityLv==1}">
						<span class="red">（低）</span>
					</c:if>
					<c:if test="${securityLv==2}">
						<span class="yellow">（中）</span>
					</c:if>
					<c:if test="${securityLv==3}">
						<span class="green">（高）</span>
					</c:if>



					，为了保障您的账号安全，请 <a href="/products/personalcenter" target="_blank"
						class="blue">立即完善账号安全信息</a>
				</div>
				
				
				<div class="game_tj">
					<a class="btn_10" href="/products/personalcenter"><span>进入我的乐控科技账号</span>
					</a>
				</div>
			</div>

			<div class="reg_footbox">
				<p>
					<span>COPYRIGHT&nbsp;&copy;&nbsp;1998 &ndash; 2015
						KONGZHONG. ALL RIGHTS RESERVED. </span>乐控科技版权所有
				</p>
				<p>京ICP证020001号&nbsp;京网文[2011]0467&ndash;160号&nbsp;经营许可证编号:B2&ndash;20090197</p>
			</div>

			<div style="display:none">
				<script type="text/javascript">
					var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://"
							: " http://");
					document
							.write(unescape("%3Cscript src='"
									+ _bdhmProtocol
									+ "hm.baidu.com/h.js%3F1287c2225a527abe3386233dd9316f99' type='text/javascript'%3E%3C/script%3E"));
				</script>
<!-- 				<script type="text/javascript" -->
<!-- 					src="http://track.kongzhong.com/refer.js"></script> -->
			</div>




		</div>
	</div>

	<script type="text/javascript">
		var accsuccess_tip = function(msg) {
			$("#necheng_tip").text(msg).show();
		}
		$("#nichengtxt").bind("focus", function() {
			if ($(this).val() == "请输入您的昵称") {
				$(this).val("")
			}
		}).bind("blur", function() {
			if ($(this).val() == "") {
				$(this).val("请输入您的昵称");
				this.validate = false;
				return false;
			} else {
				if (!/^[a-zA-Z0-9\u4E00-\u9FA5_-]{4,14}$/.test($(this).val())) {
					accsuccess_tip("昵称格式不正确");
					this.validate = false;
					return false;
				} else {
					$.ajax({
						dataType : "json",
						data : {
							"nicheng" : function() {
								return encodeURI($('#nichengtxt').val());
							}
						},
						url : "/ajax/checkWotNickName?t=" + Math.random(),
						beforSend : function() {
							accsuccess_tip("校验中...");
						},
						success : function(data) {
							if (data.msg == "ok") {
								accsuccess_tip("");
								return true;
							}
							if (data.msg == "same") {
								//名称重复
								accsuccess_tip("此游戏昵称已被占用!");
								return false;
							} else {
								//和谐
								accsuccess_tip("《坦克世界》不能用该词作为昵称!");
								return false;
							}
						},
						error : function() {
							accsuccess_tip("系统繁忙!请稍候再试");
							return false;
						}
					});
				}
			}
		});

		var activatewot = function() {
			var nicheng = $('#nichengtxt').val();
			if (nicheng == "请输入您的昵称") {
				accsuccess_tip("请输入您的昵称");
				return;
			}
			if (!/^[a-zA-Z0-9\u4E00-\u9FA5_-]{4,14}$/.test(nicheng)) {
				accsuccess_tip("昵称格式不正确");
				return;
			}
			var url1 = "/ajax/activategame?password=&gameId=1500000&areatype=0&activateType=game&gamerole="
					+ encodeURI(nicheng) + "&t=" + Math.random();
			$
					.ajax({
						type : 'POST',
						url : url1,
						dataType : 'json',
						success : function(data) {
							if (data.msg == "ok") {
								window.location.href = "/v/activate/actgame?gameId=1500000&areatype=0&activateType=game";
							} else {
								accsuccess_tip("激活失败：" + data.msg);
							}
						}
					});
		}
	</script>
</body>
</html>